package com.action;

import javax.annotation.Resource;

import com.opensymphony.xwork2.ActionSupport;
import com.service.QuatationService;
import com.utils.MyPage;

public class QuatationAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String curPage;
	private String rowPage;
	private MyPage page;
	@Resource
	private QuatationService quatationService;
	

	@Override
	public String execute() throws Exception {
		page = quatationService.getPage(curPage, rowPage);
		return SUCCESS;
	}

	// 以下getter setter
	public String getCurPage() {
		return curPage;
	}

	public MyPage getPage() {
		return page;
	}

	public String getRowPage() {
		return rowPage;
	}

	public void setCurPage(String curPage) {
		this.curPage = curPage;
	}

	public void setPage(MyPage page) {
		this.page = page;
	}

	public void setRowPage(String rowPage) {
		this.rowPage = rowPage;
	}

}
